const getters = {
  sidebar: state => state.app.sidebar,
  unReadMsgCount: state => state.app.unReadMsgCount,
  device: state => state.app.device,
  dataCount: state => state.app.dataCount,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.userInfo.username,
  menuAll: state => state.user.menuAll,
  routes: state => state.user.routes,
  permission: state => state.user.permission,
  allPermission: state => state.user.allPermission,
  userInfo: state => state.user.userInfo,
  superAdmin: state => state.user.userInfo.isSuperAdmin || state.user.userInfo.superAdmin,
  isSupplier: state => state.user.userInfo.userType === 3,
  isAdmin: state => state.user.userInfo.userType === 2,
  isFirstLogin: state => state.user.counter
}
export default getters
